Skip to content

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented May 23, 2025

Problem:

  • The binary logging does not support floating-point values (float and double).

Solution:

  • Separate argument encoding/packing into a type so that it can be customized, and passed through builders.
  • Allow float and double to encoded/packed.
  • Support %f specifiers in XML collateral.

Note:

  • The MIPI-SysT spec v1.1 (section 9.2 table 16) specifies that a float is packed into 64 bits even when using 32-bit packing. This implementation packs a float into 32 bits by default.

Problem:
- The binary logging does not support floating-point values (`float` and
  `double`).

Solution:
- Separate argument encoding/packing into a type so that it can be customized,
  and passed through builders.
- Allow `float` and `double` to encoded/packed.
- Support `%f` specifiers in JSON collateral.

Note:
- The MIPI-SysT spec v1.1 (section 9.2 table 16) specifies that a `float` is
  packed into 64 bits even when using 32-bit packing. This implementation packs
  a `float` into 32 bits by default.
Copy link
Contributor

@mjcaisse-intel mjcaisse-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice rework

@elbeno elbeno merged commit a01f93b into intel:main May 23, 2025
50 of 52 checks passed
@elbeno elbeno deleted the log-floats branch May 23, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants